package com.hc.feign;

import com.hc.config.FeignConfig;
import com.hc.entity.User;
import com.hc.feign.impl.FeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "HXM-USER-SERVICE",fallback = FeignFallBack.class,configuration = FeignConfig.class)
public interface MyFeign {

    @GetMapping("/user/getById")
    public User getById(@RequestParam("id") Integer id);
}
